﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users/UsersSite1.Master" AutoEventWireup="true" CodeBehind="AddUsers.aspx.cs" Inherits="TeachingManageSystem.Web.Users.AddUsers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True">
                    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1"  runat="server">
    <ContentTemplate>
            <table class="style1">
        <tr>
            <td class="style2">
                用户编号：</td>
            <td class="style2">
                <asp:TextBox ID="TbxUsereNum" runat="server"></asp:TextBox>
            </td>
            <td class="style2" rowspan="4">
                <asp:GridView ID="GridViewUserAndRole" runat="server" Height="80px" 
                    Width="434px" AutoGenerateColumns="False" AllowPaging="True" 
                    onpageindexchanging="GridViewUserAndRolePageIndexChanging" PageSize="5" 
                    DataKeyNames="ID" 
                    onrowdeleting="GridViewUserAndRoleRowDeleting">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="标识" />
                        <asp:BoundField DataField="UserNum" HeaderText="用户编号" />
                        <asp:BoundField DataField="Name" HeaderText="用户名" />
                        <asp:BoundField DataField="Pwd" HeaderText="用户密码" />
                        <asp:BoundField DataField="UsersTypeName" HeaderText="角色" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                用户名：</td>
            <td>
                <asp:TextBox ID="TbxUserName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                用户类别：</td>
            <td>
                <asp:DropDownList ID="DrpRoles" runat="server" DataTextField="UsersTypeName" 
                    DataValueField="ID" Height="28px" Width="139px">
                </asp:DropDownList>
            </td>
        </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="BtnAddUser" runat="server" onclick="BtnAddUserClick" 
                            Text="添加" />
                    </td>
                </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
